package com.edu.buservice.dal.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.buservice.dal.model.SysUsers;

import java.util.List;

/**
* @author 86177
* @description 针对表【sys_users(用户信息表)】的数据库操作Service
* @createDate 2025-02-05 23:34:19
*/
public interface SysUsersService extends IService<SysUsers> {

	//根据手机号查询用户信息
	List<SysUsers> getUserInfoByPhone(String phone);

	//根据用户id或者手机号查询用户信息
	List<SysUsers> getUserInfoByUserIdOrPhone(String userId, String phone);

	//新增用户信息
	String addUserInfo(SysUsers sysUsers);

	//根据用户id查询用户信息
	SysUsers getUserInfoById(String userId);

	//根据用户id列表批量查询用户信息
	List<SysUsers> getUserInfoByIds(List<String> userIds);

	//根据条件查询用户信息
	List<SysUsers> getUserInfoByCondition(SysUsers sysUsers);

	//获取指定租户下所有成员
	List<SysUsers> getUserInfoByTenantId(String tenantId);

	//批量删除用户信息，根据userId
	boolean removeByUserId(List<String> userId);

	//更新用户信息
	boolean updateUserInfo(SysUsers sysUsers);


}
